const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 绑定之后就可以全局使用了
  token: state => state.user.token,
  name: state => state.user.userInfo.username, // 建立用户名称的映射
  staffPhoto: state => state.user.userInfo.staffPhoto,
  companyId: state => state.user.userInfo.companyId
}
export default getters
